home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / comm / net / grapevine.lha / Grapevine / DCC-Send-1.12.lha / DCC / Install < prev    next >
Text File  |  1995-01-30  |  5KB  |  189 lines

  1. ; $VER: Install_DCC_Send 1.3 (28.10.94)
  2. ; Description: Installer script for Grapevine IRC client DCC programs
  3.  
  4. (complete 0)
  5.  
  6. (welcome "Welcome to the Grapevine DCC installation utility.\n\n"
  7.     "This script installs the DCC.Send, DCC.Move and DCC.Chat clients "
  8.     "for Grapevine IRC."
  9. )
  10.  
  11. (set dcc_dir
  12.     (askdir
  13.         (prompt "Where are your Grapevine DCC clients located?")
  14.         (help "This is the directory defined in Grapevine under "
  15.             "the Settings/Paths menu item. If you have preserved "
  16.             "the original directory structure, this should be "
  17.             "the directory DCC in Grapevine directory."
  18.         )
  19.         (default @default-dest)
  20.     )
  21. )
  22.  
  23. (complete 10)
  24.  
  25. (copylib (source "DCC.Send.AS225")
  26.     (dest dcc_dir)
  27.     (prompt "Installing DCC.Send")
  28.     (help "DCC.Send.AS225 implements the traditional ircII compatible "
  29.         "DCC SEND protocol (you don't need a DCC.Get.AS225, this does "
  30.         "that too).\n\n"
  31.         "(If Installer is saying there is no currently installed version, "
  32.         "even though you have DCC.Send.AS225 installed, " 
  33.         "it is because the version string was not quite correct before. "
  34.         "You can ignore this.)"
  35.     )
  36.     (optional "force" "askuser")
  37.     (confirm)
  38. )
  39.  
  40. (complete 20)
  41.  
  42. (copylib (source "DCC.Move.AS225")
  43.     (dest dcc_dir)
  44.     (prompt "Installing DCC.Move")
  45.     (help "DCC.Move.AS225 is a faster protocol that also supports "
  46.         "resume transfer. Currently, no other IRC client besides "
  47.         "Grapevine is known to support this.\n\n"
  48.         "(If Installer is saying there is no currently installed version, "
  49.         "even though you have DCC.Move.AS225 installed, " 
  50.         "it is because the version string was not quite correct before. "
  51.         "You can ignore this.)"
  52.     )
  53.     (optional "force" "askuser")
  54.     (confirm)
  55. )
  56.  
  57. (complete 30)
  58.  
  59. (copylib (source "DCC.Chat.AS225")
  60.     (dest dcc_dir)
  61.     (prompt "Installing DCC.Chat")
  62.     (help "DCC.Chat.AS225 implements the ircII DCC CHAT protocol.")
  63.     (optional "force" "askuser")
  64.     (confirm)
  65. )
  66.  
  67. (complete 40)
  68.  
  69. (if (not (exists "SYS:Classes"))
  70.     (
  71.         (makedir "SYS:Classes"
  72.             (prompt "Creating directory SYS:Classes..")
  73.             (help "This directory is for keeping custom BOOPSI classes"))
  74.         (copyfiles (source "S:User-Startup") (dest "S") (newname "S:User-Startup.old"))
  75.         (startup (command "Assign LIBS: SYS:Classes ADD\n")
  76.             (prompt (cat "Adding SYS:Classes to LIBS: assign\n"
  77.                         "You will need to reboot before DCC.Chat is usable"))
  78.             (help "This is necessary so that the custom classes can be found"))
  79.     )
  80. )
  81.  
  82. (if (not (exists "SYS:Classes/Gadgets"))
  83.     (makedir "SYS:Classes/Gadgets"
  84.         (prompt "Creating directory SYS:Classes/Gadgets..")
  85.         (help "This directory is for keeping custom BOOPSI gadgets")
  86.     )
  87. )
  88.  
  89. (complete 45)
  90.  
  91. (copylib (source "textfield.gadget")
  92.     (dest "SYS:Classes/Gadgets")
  93.     (prompt "Installing textfield.gadget")
  94.     (help "textfield.gadget is needed by DCC.Chat.AS225.")
  95.     (optional "force" "askuser")
  96.     (confirm)
  97. )
  98.  
  99. (complete 60)
  100.  
  101. (copyfiles (source "ProcessFile.rexx")
  102.     (dest "REXX:")
  103.     (prompt "Installing ARexx script for file processing")
  104.     (help "ProcessFile.rexx is an ARexx script that automatically "
  105.         "processes a file received by DCC.Send or DCC.Move. It can "
  106.         "for example show text files, play sound samples, etc."
  107.     )
  108.     (optional "force" "askuser")
  109.     (confirm)
  110. )
  111.  
  112. (complete 70)
  113.  
  114. (if (askbool
  115.         (prompt "Do you want to enable the file processing ARexx script?")
  116.         (help "If you answer yes, an environment variable PROCESSDCC will "
  117.             "be set so that DCC.Send will run the ProcessFile.rexx script "
  118.             "after a successfull receive."
  119.         )
  120.     )
  121.     (    
  122.         (textfile (dest "ENV:PROCESSDCC") 
  123.             (append "SYS:RexxC/RX REXX:ProcessFile.rexx \"%s\" \"%s\""))
  124.         (textfile (dest "ENVARC:PROCESSDCC") 
  125.             (append "SYS:RexxC/RX REXX:ProcessFile.rexx \"%s\" \"%s\""))
  126.     )
  127. )
  128.     
  129. (complete 75)
  130.  
  131. (set install_docs
  132.     (askbool
  133.         (prompt "DCC.Send documentation consists of an AmigaGuide file "
  134.             "that explains the features and usage of both DCC.Send.AS225 "
  135.             "and DCC.Move.AS225. Also included is instructions for setting "
  136.             "these programs up for use with TIA (The Internet Adapter).\n\n"
  137.             "Do you want to copy DCC.Send documentation?"
  138.         )
  139.         (help "No additional help available.")
  140.     )
  141. )
  142.  
  143. (complete 80)
  144.  
  145. (if install_docs
  146.     (
  147.         (set docs_dir
  148.             (askdir
  149.                 (prompt "Where do you wish to copy the documentation?")
  150.                 (help "A suggested place for this is where you have placed "
  151.                     "Grapevine documentation. If you have preserved the "
  152.                     "original directory structure, this should be the "
  153.                     "directory Docs in the Grapevine directory."
  154.                 )
  155.                 (default (expandpath (tackon dcc_dir "/Docs")))
  156.             )
  157.         )
  158.  
  159.         (complete 85)
  160.  
  161.         (copyfiles (source "DCC.Send.guide")
  162.             (dest docs_dir)
  163.             (optional "force" "askuser")
  164.             (infos)
  165.         )
  166.     )
  167. )
  168.  
  169. (complete 90)
  170.  
  171. (if (askbool
  172.         (prompt "While DCC.Send is now installed and fully usable, it "
  173.                 "has some advanced features that you must "
  174.                 "configure if you want to use them. Because of this, "
  175.                 "you should read at least the configuration section of "
  176.                 "the documentation.\n\n"
  177.                 "Do you want to see the documentation now?"
  178.         )
  179.         (help "If you answer yes, MultiView will be started to show "
  180.             "the AmigaGuide form documentation."
  181.         )
  182.     )
  183.     (run "SYS:Utilities/MultiView DCC.Send.guide")
  184. )
  185.  
  186. (set @default-dest dcc_dir)
  187.  
  188. (complete 100)
  189.